home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2003 May / cmycha200305.iso / MutantStorm / setup_mutantstorm_demo.exe / {app} / script / crystal_medium.lua < prev    next >
Text File  |  2002-09-12  |  2KB  |  60 lines

  1.  
  2. -- leave me
  3.     local actor = ACTOR_preload()
  4. -- leave me
  5.  
  6.  
  7.     -- default for this beastie
  8.     actor[cp_actor_name]        = "crystal_medium"
  9.     actor[cp_model_dir]            = "beasties"
  10.     actor[cp_model_name]        = "crystal-1_2"
  11.  
  12.     actor[cp_move_type]            = cmt_fixed_dirn + cmt_random
  13.  
  14.     actor[cp_actor_type]            = cat_crystal
  15.     actor[cp_i_collide_with_beasties]    = cat_fence + cat_fizz + cat_player + cat_block + cat_blocker + cat_webblob + cat_mergeblob
  16. --    actor[cp_these_collide_with_me]        = cat_player + cat_bullet + cat_crystal
  17.  
  18.     actor[cp_score]                = 100
  19.     actor[cp_hit_power]            = 5.0
  20.  
  21.     -- movement
  22.     actor[cp_move_speed_min]        = 0.125
  23.     actor[cp_move_speed_max]        = 0.175
  24.     actor[cp_move_inertia_decn]        = 1.0
  25.  
  26.     actor[cp_spin_speed_min]        = 0.25
  27.     actor[cp_spin_speed_max]        = 1.25
  28.     -- spin1_x
  29.     actor[cp_turn_speed_moving]        = 0.15
  30.  
  31.     actor[cp_weight]                = 12.0
  32.  
  33.     actor[cp_launch_scale_min]        = 100.0
  34.     actor[cp_launch_scale_max]        = 100.0
  35.  
  36.     actor[cp_launch_hue_shift] = color - 30
  37.  
  38.     actor[cp_hit_delay]            = 2.55
  39.     actor[cp_fade_in_translucent]    = 1
  40.  
  41.     actor[cp_max_explosion_multiply]    = 0.5
  42.  
  43. -- leave me
  44.     c_preload_model( actor )
  45. -- leave me
  46.  
  47.     c_set_random_anim( "throb", 100.0, 300.0, 0.0, 1.0 )
  48.     c_add_sound_to_anim( "throb", "moon", 1 )
  49.  
  50.     local seq = { 0.0 }
  51.     c_set_use_explosion_for( "bye_bye", "crystal1_med", exp_no_align, 0.0, 0.35, 1600.0, 1900.0, seq )
  52.     c_add_particle_to_explosion( "crystal1_med", "explode", "", "crystal1exp-med" )
  53.     c_add_sound_to_explosion( "crystal1_med", "explode", "crystal_exp2" )
  54.  
  55.     c_add_sound_to_event( "hit_fence", "crystal_exp2" )
  56.  
  57.     -- new state
  58.     c_set_trigger_mutate( "crystal_small", "my_health", 0.0, 0.0, 2, 3, 95.0, 105.0 )
  59.     -- new state
  60.